package com.sright.bcard.common.biz.service;

import com.aliyuncs.exceptions.ClientException;
import com.sright.bcard.common.biz.manager.SmsServiceManager;
import com.sright.bcard.content.share.service.SmsService;
import com.sright.bcard.common.service.share.dto.content.AdminDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SmsServiceImpl implements SmsService {

    @Autowired
    private SmsServiceManager smsServiceManager;

    @Override
    public String smsSend(AdminDTO AdminDTO) throws ClientException {
        return smsServiceManager.smsSend(AdminDTO);
    }

    @Override
    public String sendMessage(String jsonParam, String templateCode, String mobile) throws ClientException {
        return smsServiceManager.sendMessage(jsonParam,templateCode,mobile);
    }
}
